<template>
<div>
 <TableList
 :loading="loading"
 :tableData="tableData"
 :tableHead="tableHead"
  />
</div>
  
</template>
   
<script>
import TableList from '../../tt/Table.vue'
import {getList} from '../../utils/utils'
export default {
components:{
    TableList
},
data(){
    return{
        getList:[],
        tableData:[],
        tableHead:[
            {
            label:'ID',
            prop:'id'
        },
        {
            label:'公告',
            prop:'title'
        },
        {
            label:'??',
           
        },
     
        {
            label:'操作',
            type:'button',
            button:{
                update:true,
                delete:true
            }
        },

        ]
    }
},

    methods:{
        async getNoticeList(){
            const  data = await getList({})
           console.log(data)
            if(data.errCode==10000){
                console.log(111)
                this.tableData = data.data.list
            }
            // this.tableData = datac
        }
    },

    created(){
        this.getNoticeList()
    }
}
</script>

<style>

</style>